package org.september.pisces.user.permission.entity;

import org.september.smartdao.anno.AutoIncrease;
import org.september.smartdao.anno.Entity;
import org.september.smartdao.anno.Id;

import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsAutoIncrement;
import com.gitee.sunchenbin.mybatis.actable.annotation.IsKey;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;

import lombok.Data;

/**
 *
 **/
@Data
@Entity
@Table("pisces_permission")
public class RolePermission {

    /**
     *
     */
    @Id
    @AutoIncrease
    @IsKey
    @IsAutoIncrement
    @Column(name = "id", length = 20)
    private Long id;

   @Column(name = "role_id", length = 20)
   protected Long roleId;
   
   @Column(name = "resource", length = 128)
   protected String resource;
   
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public RolePermission() {
    	
    }
	public RolePermission(Long roleId, String resource) {
		super();
		this.roleId = roleId;
		this.resource = resource;
	}

}
